//
//  ICrEAMUser.m
//  ICrEAM
//
//  Created by mac on 16/11/1.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ICrEAMUser.h"

@implementation ICrEAMUser
static ICrEAMUser *instance;

+(ICrEAMUser*)shareICrEAMUser{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance=[[ICrEAMUser alloc]init];
    });
    return instance;
}
-(UserType)userType{
    if ([self.IS_SERVICE_ADVISOR_MASTER isEqualToString:@"12781001"]) {
        return ManagerType;
    }
    if ([self.IS_SERVICE_ADVISOR isEqualToString:@"12781001"]&&[self.IS_WORKSHOP_MASTER isEqualToString:@"12781001"]) {
        return ManagerType;
    }
    if ([self.IS_SERVICE_ADVISOR isEqualToString:@"12781001"]) {
        return ConsultantType;
    }
    if ([self.IS_WORKSHOP_MASTER isEqualToString:@"12781001"]) {
        return WorkshopType;
    }

    return NoneType;
}
@end
